/**
 * 公共动作分发模块
 */
import { GET_CHAT_LIST } from './common-type'
import { getUserChatMesgAxios } from '../api/api'
// 分发获取消息列表的模块
export const getChatListAction = (uId) => {
   return async (dispatch) => {
      const { data } = await getUserChatMesgAxios()
      data.uId = uId
      dispatch({
         type: GET_CHAT_LIST,
         data
      })
   }
}